home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / Ss-Sz / Stack Starter ß.979 / Stack Starter fl.979 / card_16975.txt < prev    next >
Encoding:
Text File  |  1989-07-29  |  10.6 KB  |  488 lines

  1. -- card: 16975 from stack: in.979
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 7045
  5. -- name: the effects editor
  6. ----- HyperTalk script -----
  7. on mouseUp
  8.   global Speed, Color
  9.   --lockcard
  10.   if visible of btn id 26 is true then
  11.     repeat with i = 26 to 33
  12.       set hilite of card btn id i to false
  13.     end repeat
  14.   end if
  15.   get Speed
  16.   if Speed is empty then set hilite of card btn "Normal" to true
  17.   else set hilite of card btn (Speed) to true
  18.   get Color
  19.   if Color is empty then set hilite of card btn "Invisible" to true
  20.   else set hilite of card btn (Color) to true
  21.  
  22.   pass mouseUp
  23. end mouseUp
  24.  
  25. on idle
  26.   set lockText of card field "Visual Effects" to true
  27.   if visible of field "Mouse Loc2" is true then
  28.     put the mouseLoc into field "Mouse Loc2"
  29.   end if
  30.   send idle to stack
  31.   exit idle
  32. end idle
  33.  
  34. on test
  35.   global hold, Speed, Color
  36.   if first word of hold is "Flash" then
  37.     if hilite of bkgnd btn "Multi-EFX" is true then
  38.       put hold & return & card field "Test" into card field "Test"
  39.     end if
  40.     put hold into card field "Test"
  41.     do (card field "Test")
  42.     exit test
  43.   else
  44.     if hilite of card btn "Multi-EFX" is true then
  45.       put "visual effect" && hold && Speed && Color & return & card field "Test" into card field "Test"
  46.     else put "visual effect" && hold && Speed && Color into card field "Test"
  47.     do (card field "Test")
  48.     go to this card
  49.   end if
  50. end test
  51.  
  52. on effects
  53.   if the visible of card field "Visual Effects" is not true then
  54.     send mouseUp to bkgnd btn "Effects"
  55.   end if
  56. end effects
  57.  
  58. on openCard
  59.   global Hold
  60.   show menuBar
  61.   if hold is empty then
  62.     put "checkerboard" into hold
  63.     repeat with i = 17 to 19
  64.       if hilite of bkgnd btn id i is true then
  65.         send mouseUp to bkgnd btn id i
  66.       end if
  67.     end repeat
  68.     repeat with i = 42 to 45
  69.       set hilite of card btn id i to false
  70.     end repeat
  71.   end if
  72.   push card
  73.   put the short name of this card into bkgnd field "Title"
  74.   set name of bkgnd btn id 72 to "Prev Card:" && short name of prev card
  75.   set name of bkgnd btn id 73 to "Next Card:" && short name of next card
  76.   pass openCard
  77. end openCard
  78.  
  79.  
  80. -- part 25 (field)
  81. -- low flags: 81
  82. -- high flags: 0007
  83. -- rect: left=200 top=107 right=268 bottom=485
  84. -- title width / last selected line: 0
  85. -- icon id / first selected line: 0 / 0
  86. -- text alignment: 0
  87. -- font id: 3
  88. -- text size: 12
  89. -- style flags: 0
  90. -- line height: 16
  91. -- part name: Visual Effects
  92. ----- HyperTalk script -----
  93. on mouseUp
  94.   global Hold, Speed, Color
  95.   put the optionkey into keystate
  96.   if the selection is empty then
  97.     set lockText of the target to false -- unlock to enable text editing
  98.     click at (first item of the rect of the target), (second item of the clickLoc)
  99.     click at (last item of the rect of the target)+59, (second item of the clickLoc) with shiftKey
  100.     put the selection into hold
  101.     click at 0,0 --disable selection
  102.     set lockText of the target to true
  103.   end if
  104.   if first word of hold is "Flash" then
  105.     if hilite of card btn "Multi-EFX" is true then
  106.       put hold & return & card field "Test" into card field "Test"
  107.     else
  108.       put hold into card field "Test"
  109.     end if
  110.     do (card field "Test")
  111.     exit mouseUp
  112.   else if hilite of card btn "Maintain Speed and Color" is true then
  113.     if hilite of card btn "Multi-EFX" is true then
  114.       put "visual effect" && hold && Speed && Color & return & card field "Test" into card field "Test"
  115.     else
  116.       put "visual effect" && hold && Speed && Color into card field "Test"
  117.     end if
  118.     do (card field "Test")
  119.     go to this card
  120.   else
  121.     put empty into Color
  122.     put empty into Speed
  123.     if hilite of card btn "Multi-EFX" is true then
  124.       put "visual effect" && hold && Speed && Color & return & card field "Test" into card field "Test"
  125.     else
  126.       put "visual effect" && hold into card field "Test"
  127.     end if
  128.     do (card field "Test")
  129.     go to this card
  130.   end if
  131.   pass mouseUp
  132. end mouseUp
  133.  
  134.  
  135.  
  136. -- part 24 (field)
  137. -- low flags: 80
  138. -- high flags: 0007
  139. -- rect: left=116 top=76 right=107 bottom=485
  140. -- title width / last selected line: 0
  141. -- icon id / first selected line: 0 / 0
  142. -- text alignment: 0
  143. -- font id: 0
  144. -- text size: 12
  145. -- style flags: 0
  146. -- line height: 15
  147. -- part name: Test
  148.  
  149.  
  150. -- part 26 (button)
  151. -- low flags: 80
  152. -- high flags: A002
  153. -- rect: left=116 top=107 right=123 bottom=200
  154. -- title width / last selected line: 0
  155. -- icon id / first selected line: 0 / 0
  156. -- text alignment: 1
  157. -- font id: 0
  158. -- text size: 12
  159. -- style flags: 0
  160. -- line height: 16
  161. -- part name: Fast
  162. ----- HyperTalk script -----
  163. on mouseUp
  164.   global Speed
  165.   put short name of me into Speed
  166.   test
  167.   pass mouseUp
  168. end mouseUp
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. -- part 27 (button)
  176. -- low flags: 80
  177. -- high flags: C002
  178. -- rect: left=116 top=122 right=138 bottom=200
  179. -- title width / last selected line: 0
  180. -- icon id / first selected line: 0 / 0
  181. -- text alignment: 1
  182. -- font id: 0
  183. -- text size: 12
  184. -- style flags: 0
  185. -- line height: 16
  186. -- part name: Normal
  187. ----- HyperTalk script -----
  188. on mouseUp
  189.   global Speed
  190.   put empty into Speed
  191.   test
  192.   pass mouseUp
  193. end mouseUp
  194.  
  195.  
  196.  
  197. -- part 28 (button)
  198. -- low flags: 80
  199. -- high flags: A002
  200. -- rect: left=116 top=137 right=153 bottom=200
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 0 / 0
  203. -- text alignment: 1
  204. -- font id: 0
  205. -- text size: 12
  206. -- style flags: 0
  207. -- line height: 16
  208. -- part name: Slow
  209. ----- HyperTalk script -----
  210. on mouseUp
  211.   global Speed
  212.   put short name of me into Speed
  213.   test
  214.   pass mouseUp
  215. end mouseUp
  216.  
  217.  
  218.  
  219. -- part 29 (button)
  220. -- low flags: 80
  221. -- high flags: A002
  222. -- rect: left=116 top=152 right=169 bottom=200
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 0 / 0
  225. -- text alignment: 1
  226. -- font id: 0
  227. -- text size: 12
  228. -- style flags: 0
  229. -- line height: 16
  230. -- part name: Very Slowly
  231. ----- HyperTalk script -----
  232. on mouseUp
  233.   global Speed
  234.   put short name of me into Speed
  235.   test
  236.   pass mouseUp
  237. end mouseUp
  238.  
  239.  
  240.  
  241. -- part 30 (button)
  242. -- low flags: 80
  243. -- high flags: A002
  244. -- rect: left=116 top=168 right=184 bottom=200
  245. -- title width / last selected line: 0
  246. -- icon id / first selected line: 0 / 0
  247. -- text alignment: 1
  248. -- font id: 0
  249. -- text size: 12
  250. -- style flags: 0
  251. -- line height: 16
  252. -- part name: To Black
  253. ----- HyperTalk script -----
  254. on mouseUp
  255.   global Color
  256.   put short name of me into Color
  257.   test
  258.   pass mouseUp
  259. end mouseUp
  260.  
  261.  
  262.  
  263. -- part 31 (button)
  264. -- low flags: 80
  265. -- high flags: A002
  266. -- rect: left=116 top=182 right=199 bottom=200
  267. -- title width / last selected line: 0
  268. -- icon id / first selected line: 0 / 0
  269. -- text alignment: 1
  270. -- font id: 0
  271. -- text size: 12
  272. -- style flags: 0
  273. -- line height: 16
  274. -- part name: To Gray
  275. ----- HyperTalk script -----
  276. on mouseUp
  277.   global Color
  278.   put short name of me into Color
  279.   test
  280.   pass mouseUp
  281. end mouseUp
  282.  
  283.  
  284.  
  285. -- part 32 (button)
  286. -- low flags: 80
  287. -- high flags: A002
  288. -- rect: left=116 top=197 right=213 bottom=200
  289. -- title width / last selected line: 0
  290. -- icon id / first selected line: 0 / 0
  291. -- text alignment: 1
  292. -- font id: 0
  293. -- text size: 12
  294. -- style flags: 0
  295. -- line height: 16
  296. -- part name: To White
  297. ----- HyperTalk script -----
  298. on mouseUp
  299.   global Color
  300.   put short name of me into Color
  301.   test
  302.   pass mouseUp
  303. end mouseUp
  304.  
  305.  
  306.  
  307. -- part 33 (button)
  308. -- low flags: 80
  309. -- high flags: C002
  310. -- rect: left=116 top=213 right=229 bottom=200
  311. -- title width / last selected line: 0
  312. -- icon id / first selected line: 0 / 0
  313. -- text alignment: 1
  314. -- font id: 0
  315. -- text size: 12
  316. -- style flags: 0
  317. -- line height: 16
  318. -- part name: Invisible
  319. ----- HyperTalk script -----
  320. on mouseUp
  321.   global Color
  322.   put empty into Color
  323.   test
  324.   pass mouseUp
  325. end mouseUp
  326.  
  327.  
  328.  
  329. -- part 42 (button)
  330. -- low flags: 80
  331. -- high flags: 8002
  332. -- rect: left=116 top=231 right=250 bottom=200
  333. -- title width / last selected line: 0
  334. -- icon id / first selected line: 0 / 0
  335. -- text alignment: 1
  336. -- font id: 0
  337. -- text size: 12
  338. -- style flags: 0
  339. -- line height: 16
  340. -- part name: Multi-EFX
  341. ----- HyperTalk script -----
  342. on mouseUp
  343.   set hilite of me to not hilite of me
  344. end mouseUp
  345.  
  346.  
  347.  
  348. -- part 43 (button)
  349. -- low flags: 80
  350. -- high flags: A002
  351. -- rect: left=116 top=249 right=268 bottom=200
  352. -- title width / last selected line: 0
  353. -- icon id / first selected line: 0 / 0
  354. -- text alignment: 1
  355. -- font id: 0
  356. -- text size: 12
  357. -- style flags: 0
  358. -- line height: 16
  359. -- part name: Test Multi
  360. ----- HyperTalk script -----
  361. on mouseUp
  362.   put number of lines in card field "Test" into lineNum
  363.   put 1 into done
  364.   repeat until done >lineNum
  365.     get line done in card field "Test"
  366.     do it
  367.     go to this card
  368.     add 1 to done
  369.   end repeat
  370. end mouseUp
  371.  
  372.  
  373.  
  374. -- part 44 (button)
  375. -- low flags: 80
  376. -- high flags: A002
  377. -- rect: left=116 top=268 right=291 bottom=200
  378. -- title width / last selected line: 0
  379. -- icon id / first selected line: 0 / 0
  380. -- text alignment: 1
  381. -- font id: 0
  382. -- text size: 12
  383. -- style flags: 0
  384. -- line height: 16
  385. -- part name: Play All
  386. ----- HyperTalk script -----
  387. on mouseUp
  388.   global Speed, Color
  389.   put number of lines in card field "Visual Effects" into lineNum
  390.   put 1 into done
  391.   repeat until done >lineNum
  392.     get line done in card field "Visual Effects"
  393.     if word 1 of line done in card field "Visual Effects" is "flash" then
  394.       put it into card field "Test"
  395.       do it
  396.     else
  397.       if hilite of card btn "Maintain Speed and Color" is true then
  398.         put "visual effect" && it && (Speed) && (Color) into card field "Test"
  399.         do (card field "Test")
  400.         go to this card
  401.       else
  402.         put empty into Color
  403.         put empty into Speed
  404.         put "visual effect" && it into card field "Test"
  405.         do (card field "Test")
  406.         go to this card
  407.       end if
  408.     end if
  409.     add 1 to done
  410.   end repeat
  411. end mouseUp
  412.  
  413.  
  414.  
  415. -- part 45 (button)
  416. -- low flags: 80
  417. -- high flags: 8002
  418. -- rect: left=276 top=268 right=291 bottom=462
  419. -- title width / last selected line: 0
  420. -- icon id / first selected line: 0 / 0
  421. -- text alignment: 1
  422. -- font id: 0
  423. -- text size: 12
  424. -- style flags: 0
  425. -- line height: 16
  426. -- part name: Maintain Speed and Color
  427. ----- HyperTalk script -----
  428. on mouseUp
  429.   set hilite of me to not hilite of me
  430. end mouseUp
  431.  
  432.  
  433.  
  434. -- part contents for card part 25
  435. ----- text -----
  436. flash 1
  437. flash 3 
  438. flash 6
  439. flash the random of 10
  440. barn door open
  441. barn door close
  442. checkerboard
  443. dissolve
  444. iris open
  445. iris close
  446. plain
  447. scroll left
  448. scroll right
  449. scroll up
  450. scroll down
  451. venetian blinds
  452. wipe left
  453. wipe right
  454. wipe up
  455. wipe down
  456. zoom in
  457. zoom out
  458. zoom open
  459. zoom close
  460.  
  461.  
  462. -- part contents for background part 38
  463. ----- text -----
  464. the effects editor
  465.  
  466. -- part contents for background part 53
  467. ----- text -----
  468. 228,29
  469.  
  470. -- part contents for background part 52
  471. ----- text -----
  472. Mouse Location:
  473.  
  474. -- part contents for background part 78
  475. ----- text -----
  476. Prev Card: knobs
  477.  
  478. -- part contents for background part 79
  479. ----- text -----
  480. Next Card: the field fabricater
  481.  
  482. -- part contents for background part 81
  483. ----- text -----
  484. Free Space:
  485.  
  486. -- part contents for background part 82
  487. ----- text -----
  488. 33.97 K